/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.msk.wlhy.service;


import com.msk.sys.service.CrudService;
import com.msk.wlhy.domain.HtLogisticsFrame;
import com.msk.wlhy.mapper.HtLogisticsFrameDao;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

/**
 * <p>[]</p>
 * <p>作者：zkp</p>
 * <p>邮箱：zkp@xiangyou.com</p>
 * <p>创建时间： 2018-06-07 </p>
 * <p>类说明：物流订单Service </p>
 * <p>修改记录：</p>
 */
@Service
@Transactional(readOnly = true)
public class HtLogisticsFrameService extends CrudService<HtLogisticsFrameDao, HtLogisticsFrame> {

//    public Page<HtLogisticsFrame> findPageTransport( Page<HtLogisticsFrame> page, HtLogisticsFrame htLogisticsFrame){
//        htLogisticsFrame.setPage(page);
//        page.setList(dao.findListTransport(htLogisticsFrame));
//        return page;
//    }

    public HtLogisticsFrame getTransport(String id) {
        return dao.getTransport(id);
    }

    @Transactional(readOnly = false)
    public int deleteIds(String[] ids) {
        int result = 0;
        try{
            dao.deleteIds(ids);
            result= 1;
        }catch(Exception e){
            e.printStackTrace();
        }
        return result;
    }

}